package com.attendance.www.hr.entitys;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class AttendanceExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public AttendanceExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andAttendanceIdIsNull() {
            addCriterion("attendance_id is null");
            return (Criteria) this;
        }

        public Criteria andAttendanceIdIsNotNull() {
            addCriterion("attendance_id is not null");
            return (Criteria) this;
        }

        public Criteria andAttendanceIdEqualTo(Integer value) {
            addCriterion("attendance_id =", value, "attendanceId");
            return (Criteria) this;
        }

        public Criteria andAttendanceIdNotEqualTo(Integer value) {
            addCriterion("attendance_id <>", value, "attendanceId");
            return (Criteria) this;
        }

        public Criteria andAttendanceIdGreaterThan(Integer value) {
            addCriterion("attendance_id >", value, "attendanceId");
            return (Criteria) this;
        }

        public Criteria andAttendanceIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("attendance_id >=", value, "attendanceId");
            return (Criteria) this;
        }

        public Criteria andAttendanceIdLessThan(Integer value) {
            addCriterion("attendance_id <", value, "attendanceId");
            return (Criteria) this;
        }

        public Criteria andAttendanceIdLessThanOrEqualTo(Integer value) {
            addCriterion("attendance_id <=", value, "attendanceId");
            return (Criteria) this;
        }

        public Criteria andAttendanceIdIn(List<Integer> values) {
            addCriterion("attendance_id in", values, "attendanceId");
            return (Criteria) this;
        }

        public Criteria andAttendanceIdNotIn(List<Integer> values) {
            addCriterion("attendance_id not in", values, "attendanceId");
            return (Criteria) this;
        }

        public Criteria andAttendanceIdBetween(Integer value1, Integer value2) {
            addCriterion("attendance_id between", value1, value2, "attendanceId");
            return (Criteria) this;
        }

        public Criteria andAttendanceIdNotBetween(Integer value1, Integer value2) {
            addCriterion("attendance_id not between", value1, value2, "attendanceId");
            return (Criteria) this;
        }

        public Criteria andEmployeeIdIsNull() {
            addCriterion("employee_id is null");
            return (Criteria) this;
        }

        public Criteria andEmployeeIdIsNotNull() {
            addCriterion("employee_id is not null");
            return (Criteria) this;
        }

        public Criteria andEmployeeIdEqualTo(Integer value) {
            addCriterion("employee_id =", value, "employeeId");
            return (Criteria) this;
        }

        public Criteria andEmployeeIdNotEqualTo(Integer value) {
            addCriterion("employee_id <>", value, "employeeId");
            return (Criteria) this;
        }

        public Criteria andEmployeeIdGreaterThan(Integer value) {
            addCriterion("employee_id >", value, "employeeId");
            return (Criteria) this;
        }

        public Criteria andEmployeeIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("employee_id >=", value, "employeeId");
            return (Criteria) this;
        }

        public Criteria andEmployeeIdLessThan(Integer value) {
            addCriterion("employee_id <", value, "employeeId");
            return (Criteria) this;
        }

        public Criteria andEmployeeIdLessThanOrEqualTo(Integer value) {
            addCriterion("employee_id <=", value, "employeeId");
            return (Criteria) this;
        }

        public Criteria andEmployeeIdIn(List<Integer> values) {
            addCriterion("employee_id in", values, "employeeId");
            return (Criteria) this;
        }

        public Criteria andEmployeeIdNotIn(List<Integer> values) {
            addCriterion("employee_id not in", values, "employeeId");
            return (Criteria) this;
        }

        public Criteria andEmployeeIdBetween(Integer value1, Integer value2) {
            addCriterion("employee_id between", value1, value2, "employeeId");
            return (Criteria) this;
        }

        public Criteria andEmployeeIdNotBetween(Integer value1, Integer value2) {
            addCriterion("employee_id not between", value1, value2, "employeeId");
            return (Criteria) this;
        }

        public Criteria andAttendanceDateIsNull() {
            addCriterion("attendance_date is null");
            return (Criteria) this;
        }

        public Criteria andAttendanceDateIsNotNull() {
            addCriterion("attendance_date is not null");
            return (Criteria) this;
        }

        public Criteria andAttendanceDateEqualTo(Date value) {
            addCriterionForJDBCDate("attendance_date =", value, "attendanceDate");
            return (Criteria) this;
        }

        public Criteria andAttendanceDateNotEqualTo(Date value) {
            addCriterionForJDBCDate("attendance_date <>", value, "attendanceDate");
            return (Criteria) this;
        }

        public Criteria andAttendanceDateGreaterThan(Date value) {
            addCriterionForJDBCDate("attendance_date >", value, "attendanceDate");
            return (Criteria) this;
        }

        public Criteria andAttendanceDateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("attendance_date >=", value, "attendanceDate");
            return (Criteria) this;
        }

        public Criteria andAttendanceDateLessThan(Date value) {
            addCriterionForJDBCDate("attendance_date <", value, "attendanceDate");
            return (Criteria) this;
        }

        public Criteria andAttendanceDateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("attendance_date <=", value, "attendanceDate");
            return (Criteria) this;
        }

        public Criteria andAttendanceDateIn(List<Date> values) {
            addCriterionForJDBCDate("attendance_date in", values, "attendanceDate");
            return (Criteria) this;
        }

        public Criteria andAttendanceDateNotIn(List<Date> values) {
            addCriterionForJDBCDate("attendance_date not in", values, "attendanceDate");
            return (Criteria) this;
        }

        public Criteria andAttendanceDateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("attendance_date between", value1, value2, "attendanceDate");
            return (Criteria) this;
        }

        public Criteria andAttendanceDateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("attendance_date not between", value1, value2, "attendanceDate");
            return (Criteria) this;
        }

        public Criteria andOriginalStartTimeIsNull() {
            addCriterion("original_start_time is null");
            return (Criteria) this;
        }

        public Criteria andOriginalStartTimeIsNotNull() {
            addCriterion("original_start_time is not null");
            return (Criteria) this;
        }

        public Criteria andOriginalStartTimeEqualTo(String value) {
            addCriterion("original_start_time =", value, "originalStartTime");
            return (Criteria) this;
        }

        public Criteria andOriginalStartTimeNotEqualTo(String value) {
            addCriterion("original_start_time <>", value, "originalStartTime");
            return (Criteria) this;
        }

        public Criteria andOriginalStartTimeGreaterThan(String value) {
            addCriterion("original_start_time >", value, "originalStartTime");
            return (Criteria) this;
        }

        public Criteria andOriginalStartTimeGreaterThanOrEqualTo(String value) {
            addCriterion("original_start_time >=", value, "originalStartTime");
            return (Criteria) this;
        }

        public Criteria andOriginalStartTimeLessThan(String value) {
            addCriterion("original_start_time <", value, "originalStartTime");
            return (Criteria) this;
        }

        public Criteria andOriginalStartTimeLessThanOrEqualTo(String value) {
            addCriterion("original_start_time <=", value, "originalStartTime");
            return (Criteria) this;
        }

        public Criteria andOriginalStartTimeLike(String value) {
            addCriterion("original_start_time like", value, "originalStartTime");
            return (Criteria) this;
        }

        public Criteria andOriginalStartTimeNotLike(String value) {
            addCriterion("original_start_time not like", value, "originalStartTime");
            return (Criteria) this;
        }

        public Criteria andOriginalStartTimeIn(List<String> values) {
            addCriterion("original_start_time in", values, "originalStartTime");
            return (Criteria) this;
        }

        public Criteria andOriginalStartTimeNotIn(List<String> values) {
            addCriterion("original_start_time not in", values, "originalStartTime");
            return (Criteria) this;
        }

        public Criteria andOriginalStartTimeBetween(String value1, String value2) {
            addCriterion("original_start_time between", value1, value2, "originalStartTime");
            return (Criteria) this;
        }

        public Criteria andOriginalStartTimeNotBetween(String value1, String value2) {
            addCriterion("original_start_time not between", value1, value2, "originalStartTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeIsNull() {
            addCriterion("start_time is null");
            return (Criteria) this;
        }

        public Criteria andStartTimeIsNotNull() {
            addCriterion("start_time is not null");
            return (Criteria) this;
        }

        public Criteria andStartTimeEqualTo(String value) {
            addCriterion("start_time =", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeNotEqualTo(String value) {
            addCriterion("start_time <>", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeGreaterThan(String value) {
            addCriterion("start_time >", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeGreaterThanOrEqualTo(String value) {
            addCriterion("start_time >=", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeLessThan(String value) {
            addCriterion("start_time <", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeLessThanOrEqualTo(String value) {
            addCriterion("start_time <=", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeLike(String value) {
            addCriterion("start_time like", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeNotLike(String value) {
            addCriterion("start_time not like", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeIn(List<String> values) {
            addCriterion("start_time in", values, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeNotIn(List<String> values) {
            addCriterion("start_time not in", values, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeBetween(String value1, String value2) {
            addCriterion("start_time between", value1, value2, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeNotBetween(String value1, String value2) {
            addCriterion("start_time not between", value1, value2, "startTime");
            return (Criteria) this;
        }

        public Criteria andOriginalEndTimeIsNull() {
            addCriterion("original_end_time is null");
            return (Criteria) this;
        }

        public Criteria andOriginalEndTimeIsNotNull() {
            addCriterion("original_end_time is not null");
            return (Criteria) this;
        }

        public Criteria andOriginalEndTimeEqualTo(String value) {
            addCriterion("original_end_time =", value, "originalEndTime");
            return (Criteria) this;
        }

        public Criteria andOriginalEndTimeNotEqualTo(String value) {
            addCriterion("original_end_time <>", value, "originalEndTime");
            return (Criteria) this;
        }

        public Criteria andOriginalEndTimeGreaterThan(String value) {
            addCriterion("original_end_time >", value, "originalEndTime");
            return (Criteria) this;
        }

        public Criteria andOriginalEndTimeGreaterThanOrEqualTo(String value) {
            addCriterion("original_end_time >=", value, "originalEndTime");
            return (Criteria) this;
        }

        public Criteria andOriginalEndTimeLessThan(String value) {
            addCriterion("original_end_time <", value, "originalEndTime");
            return (Criteria) this;
        }

        public Criteria andOriginalEndTimeLessThanOrEqualTo(String value) {
            addCriterion("original_end_time <=", value, "originalEndTime");
            return (Criteria) this;
        }

        public Criteria andOriginalEndTimeLike(String value) {
            addCriterion("original_end_time like", value, "originalEndTime");
            return (Criteria) this;
        }

        public Criteria andOriginalEndTimeNotLike(String value) {
            addCriterion("original_end_time not like", value, "originalEndTime");
            return (Criteria) this;
        }

        public Criteria andOriginalEndTimeIn(List<String> values) {
            addCriterion("original_end_time in", values, "originalEndTime");
            return (Criteria) this;
        }

        public Criteria andOriginalEndTimeNotIn(List<String> values) {
            addCriterion("original_end_time not in", values, "originalEndTime");
            return (Criteria) this;
        }

        public Criteria andOriginalEndTimeBetween(String value1, String value2) {
            addCriterion("original_end_time between", value1, value2, "originalEndTime");
            return (Criteria) this;
        }

        public Criteria andOriginalEndTimeNotBetween(String value1, String value2) {
            addCriterion("original_end_time not between", value1, value2, "originalEndTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeIsNull() {
            addCriterion("end_time is null");
            return (Criteria) this;
        }

        public Criteria andEndTimeIsNotNull() {
            addCriterion("end_time is not null");
            return (Criteria) this;
        }

        public Criteria andEndTimeEqualTo(String value) {
            addCriterion("end_time =", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeNotEqualTo(String value) {
            addCriterion("end_time <>", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeGreaterThan(String value) {
            addCriterion("end_time >", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeGreaterThanOrEqualTo(String value) {
            addCriterion("end_time >=", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeLessThan(String value) {
            addCriterion("end_time <", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeLessThanOrEqualTo(String value) {
            addCriterion("end_time <=", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeLike(String value) {
            addCriterion("end_time like", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeNotLike(String value) {
            addCriterion("end_time not like", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeIn(List<String> values) {
            addCriterion("end_time in", values, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeNotIn(List<String> values) {
            addCriterion("end_time not in", values, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeBetween(String value1, String value2) {
            addCriterion("end_time between", value1, value2, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeNotBetween(String value1, String value2) {
            addCriterion("end_time not between", value1, value2, "endTime");
            return (Criteria) this;
        }

        public Criteria andAttendanceStateIsNull() {
            addCriterion("attendance_state is null");
            return (Criteria) this;
        }

        public Criteria andAttendanceStateIsNotNull() {
            addCriterion("attendance_state is not null");
            return (Criteria) this;
        }

        public Criteria andAttendanceStateEqualTo(Integer value) {
            addCriterion("attendance_state =", value, "attendanceState");
            return (Criteria) this;
        }

        public Criteria andAttendanceStateNotEqualTo(Integer value) {
            addCriterion("attendance_state <>", value, "attendanceState");
            return (Criteria) this;
        }

        public Criteria andAttendanceStateGreaterThan(Integer value) {
            addCriterion("attendance_state >", value, "attendanceState");
            return (Criteria) this;
        }

        public Criteria andAttendanceStateGreaterThanOrEqualTo(Integer value) {
            addCriterion("attendance_state >=", value, "attendanceState");
            return (Criteria) this;
        }

        public Criteria andAttendanceStateLessThan(Integer value) {
            addCriterion("attendance_state <", value, "attendanceState");
            return (Criteria) this;
        }

        public Criteria andAttendanceStateLessThanOrEqualTo(Integer value) {
            addCriterion("attendance_state <=", value, "attendanceState");
            return (Criteria) this;
        }

        public Criteria andAttendanceStateIn(List<Integer> values) {
            addCriterion("attendance_state in", values, "attendanceState");
            return (Criteria) this;
        }

        public Criteria andAttendanceStateNotIn(List<Integer> values) {
            addCriterion("attendance_state not in", values, "attendanceState");
            return (Criteria) this;
        }

        public Criteria andAttendanceStateBetween(Integer value1, Integer value2) {
            addCriterion("attendance_state between", value1, value2, "attendanceState");
            return (Criteria) this;
        }

        public Criteria andAttendanceStateNotBetween(Integer value1, Integer value2) {
            addCriterion("attendance_state not between", value1, value2, "attendanceState");
            return (Criteria) this;
        }

        public Criteria andAttendenceHoursIsNull() {
            addCriterion("attendence_hours is null");
            return (Criteria) this;
        }

        public Criteria andAttendenceHoursIsNotNull() {
            addCriterion("attendence_hours is not null");
            return (Criteria) this;
        }

        public Criteria andAttendenceHoursEqualTo(BigDecimal value) {
            addCriterion("attendence_hours =", value, "attendenceHours");
            return (Criteria) this;
        }

        public Criteria andAttendenceHoursNotEqualTo(BigDecimal value) {
            addCriterion("attendence_hours <>", value, "attendenceHours");
            return (Criteria) this;
        }

        public Criteria andAttendenceHoursGreaterThan(BigDecimal value) {
            addCriterion("attendence_hours >", value, "attendenceHours");
            return (Criteria) this;
        }

        public Criteria andAttendenceHoursGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("attendence_hours >=", value, "attendenceHours");
            return (Criteria) this;
        }

        public Criteria andAttendenceHoursLessThan(BigDecimal value) {
            addCriterion("attendence_hours <", value, "attendenceHours");
            return (Criteria) this;
        }

        public Criteria andAttendenceHoursLessThanOrEqualTo(BigDecimal value) {
            addCriterion("attendence_hours <=", value, "attendenceHours");
            return (Criteria) this;
        }

        public Criteria andAttendenceHoursIn(List<BigDecimal> values) {
            addCriterion("attendence_hours in", values, "attendenceHours");
            return (Criteria) this;
        }

        public Criteria andAttendenceHoursNotIn(List<BigDecimal> values) {
            addCriterion("attendence_hours not in", values, "attendenceHours");
            return (Criteria) this;
        }

        public Criteria andAttendenceHoursBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("attendence_hours between", value1, value2, "attendenceHours");
            return (Criteria) this;
        }

        public Criteria andAttendenceHoursNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("attendence_hours not between", value1, value2, "attendenceHours");
            return (Criteria) this;
        }

        public Criteria andActualHoursIsNull() {
            addCriterion("actual_hours is null");
            return (Criteria) this;
        }

        public Criteria andActualHoursIsNotNull() {
            addCriterion("actual_hours is not null");
            return (Criteria) this;
        }

        public Criteria andActualHoursEqualTo(BigDecimal value) {
            addCriterion("actual_hours =", value, "actualHours");
            return (Criteria) this;
        }

        public Criteria andActualHoursNotEqualTo(BigDecimal value) {
            addCriterion("actual_hours <>", value, "actualHours");
            return (Criteria) this;
        }

        public Criteria andActualHoursGreaterThan(BigDecimal value) {
            addCriterion("actual_hours >", value, "actualHours");
            return (Criteria) this;
        }

        public Criteria andActualHoursGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("actual_hours >=", value, "actualHours");
            return (Criteria) this;
        }

        public Criteria andActualHoursLessThan(BigDecimal value) {
            addCriterion("actual_hours <", value, "actualHours");
            return (Criteria) this;
        }

        public Criteria andActualHoursLessThanOrEqualTo(BigDecimal value) {
            addCriterion("actual_hours <=", value, "actualHours");
            return (Criteria) this;
        }

        public Criteria andActualHoursIn(List<BigDecimal> values) {
            addCriterion("actual_hours in", values, "actualHours");
            return (Criteria) this;
        }

        public Criteria andActualHoursNotIn(List<BigDecimal> values) {
            addCriterion("actual_hours not in", values, "actualHours");
            return (Criteria) this;
        }

        public Criteria andActualHoursBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("actual_hours between", value1, value2, "actualHours");
            return (Criteria) this;
        }

        public Criteria andActualHoursNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("actual_hours not between", value1, value2, "actualHours");
            return (Criteria) this;
        }

        public Criteria andLateHoursIsNull() {
            addCriterion("late_hours is null");
            return (Criteria) this;
        }

        public Criteria andLateHoursIsNotNull() {
            addCriterion("late_hours is not null");
            return (Criteria) this;
        }

        public Criteria andLateHoursEqualTo(BigDecimal value) {
            addCriterion("late_hours =", value, "lateHours");
            return (Criteria) this;
        }

        public Criteria andLateHoursNotEqualTo(BigDecimal value) {
            addCriterion("late_hours <>", value, "lateHours");
            return (Criteria) this;
        }

        public Criteria andLateHoursGreaterThan(BigDecimal value) {
            addCriterion("late_hours >", value, "lateHours");
            return (Criteria) this;
        }

        public Criteria andLateHoursGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("late_hours >=", value, "lateHours");
            return (Criteria) this;
        }

        public Criteria andLateHoursLessThan(BigDecimal value) {
            addCriterion("late_hours <", value, "lateHours");
            return (Criteria) this;
        }

        public Criteria andLateHoursLessThanOrEqualTo(BigDecimal value) {
            addCriterion("late_hours <=", value, "lateHours");
            return (Criteria) this;
        }

        public Criteria andLateHoursIn(List<BigDecimal> values) {
            addCriterion("late_hours in", values, "lateHours");
            return (Criteria) this;
        }

        public Criteria andLateHoursNotIn(List<BigDecimal> values) {
            addCriterion("late_hours not in", values, "lateHours");
            return (Criteria) this;
        }

        public Criteria andLateHoursBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("late_hours between", value1, value2, "lateHours");
            return (Criteria) this;
        }

        public Criteria andLateHoursNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("late_hours not between", value1, value2, "lateHours");
            return (Criteria) this;
        }

        public Criteria andLeaveearlyHoursIsNull() {
            addCriterion("leaveEarly_hours is null");
            return (Criteria) this;
        }

        public Criteria andLeaveearlyHoursIsNotNull() {
            addCriterion("leaveEarly_hours is not null");
            return (Criteria) this;
        }

        public Criteria andLeaveearlyHoursEqualTo(BigDecimal value) {
            addCriterion("leaveEarly_hours =", value, "leaveearlyHours");
            return (Criteria) this;
        }

        public Criteria andLeaveearlyHoursNotEqualTo(BigDecimal value) {
            addCriterion("leaveEarly_hours <>", value, "leaveearlyHours");
            return (Criteria) this;
        }

        public Criteria andLeaveearlyHoursGreaterThan(BigDecimal value) {
            addCriterion("leaveEarly_hours >", value, "leaveearlyHours");
            return (Criteria) this;
        }

        public Criteria andLeaveearlyHoursGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("leaveEarly_hours >=", value, "leaveearlyHours");
            return (Criteria) this;
        }

        public Criteria andLeaveearlyHoursLessThan(BigDecimal value) {
            addCriterion("leaveEarly_hours <", value, "leaveearlyHours");
            return (Criteria) this;
        }

        public Criteria andLeaveearlyHoursLessThanOrEqualTo(BigDecimal value) {
            addCriterion("leaveEarly_hours <=", value, "leaveearlyHours");
            return (Criteria) this;
        }

        public Criteria andLeaveearlyHoursIn(List<BigDecimal> values) {
            addCriterion("leaveEarly_hours in", values, "leaveearlyHours");
            return (Criteria) this;
        }

        public Criteria andLeaveearlyHoursNotIn(List<BigDecimal> values) {
            addCriterion("leaveEarly_hours not in", values, "leaveearlyHours");
            return (Criteria) this;
        }

        public Criteria andLeaveearlyHoursBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("leaveEarly_hours between", value1, value2, "leaveearlyHours");
            return (Criteria) this;
        }

        public Criteria andLeaveearlyHoursNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("leaveEarly_hours not between", value1, value2, "leaveearlyHours");
            return (Criteria) this;
        }

        public Criteria andIsApprovaledIsNull() {
            addCriterion("is_approvaled is null");
            return (Criteria) this;
        }

        public Criteria andIsApprovaledIsNotNull() {
            addCriterion("is_approvaled is not null");
            return (Criteria) this;
        }

        public Criteria andIsApprovaledEqualTo(Integer value) {
            addCriterion("is_approvaled =", value, "isApprovaled");
            return (Criteria) this;
        }

        public Criteria andIsApprovaledNotEqualTo(Integer value) {
            addCriterion("is_approvaled <>", value, "isApprovaled");
            return (Criteria) this;
        }

        public Criteria andIsApprovaledGreaterThan(Integer value) {
            addCriterion("is_approvaled >", value, "isApprovaled");
            return (Criteria) this;
        }

        public Criteria andIsApprovaledGreaterThanOrEqualTo(Integer value) {
            addCriterion("is_approvaled >=", value, "isApprovaled");
            return (Criteria) this;
        }

        public Criteria andIsApprovaledLessThan(Integer value) {
            addCriterion("is_approvaled <", value, "isApprovaled");
            return (Criteria) this;
        }

        public Criteria andIsApprovaledLessThanOrEqualTo(Integer value) {
            addCriterion("is_approvaled <=", value, "isApprovaled");
            return (Criteria) this;
        }

        public Criteria andIsApprovaledIn(List<Integer> values) {
            addCriterion("is_approvaled in", values, "isApprovaled");
            return (Criteria) this;
        }

        public Criteria andIsApprovaledNotIn(List<Integer> values) {
            addCriterion("is_approvaled not in", values, "isApprovaled");
            return (Criteria) this;
        }

        public Criteria andIsApprovaledBetween(Integer value1, Integer value2) {
            addCriterion("is_approvaled between", value1, value2, "isApprovaled");
            return (Criteria) this;
        }

        public Criteria andIsApprovaledNotBetween(Integer value1, Integer value2) {
            addCriterion("is_approvaled not between", value1, value2, "isApprovaled");
            return (Criteria) this;
        }

        public Criteria andIsRepairedIsNull() {
            addCriterion("is_repaired is null");
            return (Criteria) this;
        }

        public Criteria andIsRepairedIsNotNull() {
            addCriterion("is_repaired is not null");
            return (Criteria) this;
        }

        public Criteria andIsRepairedEqualTo(Integer value) {
            addCriterion("is_repaired =", value, "isRepaired");
            return (Criteria) this;
        }

        public Criteria andIsRepairedNotEqualTo(Integer value) {
            addCriterion("is_repaired <>", value, "isRepaired");
            return (Criteria) this;
        }

        public Criteria andIsRepairedGreaterThan(Integer value) {
            addCriterion("is_repaired >", value, "isRepaired");
            return (Criteria) this;
        }

        public Criteria andIsRepairedGreaterThanOrEqualTo(Integer value) {
            addCriterion("is_repaired >=", value, "isRepaired");
            return (Criteria) this;
        }

        public Criteria andIsRepairedLessThan(Integer value) {
            addCriterion("is_repaired <", value, "isRepaired");
            return (Criteria) this;
        }

        public Criteria andIsRepairedLessThanOrEqualTo(Integer value) {
            addCriterion("is_repaired <=", value, "isRepaired");
            return (Criteria) this;
        }

        public Criteria andIsRepairedIn(List<Integer> values) {
            addCriterion("is_repaired in", values, "isRepaired");
            return (Criteria) this;
        }

        public Criteria andIsRepairedNotIn(List<Integer> values) {
            addCriterion("is_repaired not in", values, "isRepaired");
            return (Criteria) this;
        }

        public Criteria andIsRepairedBetween(Integer value1, Integer value2) {
            addCriterion("is_repaired between", value1, value2, "isRepaired");
            return (Criteria) this;
        }

        public Criteria andIsRepairedNotBetween(Integer value1, Integer value2) {
            addCriterion("is_repaired not between", value1, value2, "isRepaired");
            return (Criteria) this;
        }

        public Criteria andSpecialIdIsNull() {
            addCriterion("special_id is null");
            return (Criteria) this;
        }

        public Criteria andSpecialIdIsNotNull() {
            addCriterion("special_id is not null");
            return (Criteria) this;
        }

        public Criteria andSpecialIdEqualTo(Integer value) {
            addCriterion("special_id =", value, "specialId");
            return (Criteria) this;
        }

        public Criteria andSpecialIdNotEqualTo(Integer value) {
            addCriterion("special_id <>", value, "specialId");
            return (Criteria) this;
        }

        public Criteria andSpecialIdGreaterThan(Integer value) {
            addCriterion("special_id >", value, "specialId");
            return (Criteria) this;
        }

        public Criteria andSpecialIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("special_id >=", value, "specialId");
            return (Criteria) this;
        }

        public Criteria andSpecialIdLessThan(Integer value) {
            addCriterion("special_id <", value, "specialId");
            return (Criteria) this;
        }

        public Criteria andSpecialIdLessThanOrEqualTo(Integer value) {
            addCriterion("special_id <=", value, "specialId");
            return (Criteria) this;
        }

        public Criteria andSpecialIdIn(List<Integer> values) {
            addCriterion("special_id in", values, "specialId");
            return (Criteria) this;
        }

        public Criteria andSpecialIdNotIn(List<Integer> values) {
            addCriterion("special_id not in", values, "specialId");
            return (Criteria) this;
        }

        public Criteria andSpecialIdBetween(Integer value1, Integer value2) {
            addCriterion("special_id between", value1, value2, "specialId");
            return (Criteria) this;
        }

        public Criteria andSpecialIdNotBetween(Integer value1, Integer value2) {
            addCriterion("special_id not between", value1, value2, "specialId");
            return (Criteria) this;
        }

        public Criteria andDescriptionIsNull() {
            addCriterion("description is null");
            return (Criteria) this;
        }

        public Criteria andDescriptionIsNotNull() {
            addCriterion("description is not null");
            return (Criteria) this;
        }

        public Criteria andDescriptionEqualTo(String value) {
            addCriterion("description =", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotEqualTo(String value) {
            addCriterion("description <>", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionGreaterThan(String value) {
            addCriterion("description >", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionGreaterThanOrEqualTo(String value) {
            addCriterion("description >=", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionLessThan(String value) {
            addCriterion("description <", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionLessThanOrEqualTo(String value) {
            addCriterion("description <=", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionLike(String value) {
            addCriterion("description like", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotLike(String value) {
            addCriterion("description not like", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionIn(List<String> values) {
            addCriterion("description in", values, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotIn(List<String> values) {
            addCriterion("description not in", values, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionBetween(String value1, String value2) {
            addCriterion("description between", value1, value2, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotBetween(String value1, String value2) {
            addCriterion("description not between", value1, value2, "description");
            return (Criteria) this;
        }

        public Criteria andAddressIsNull() {
            addCriterion("address is null");
            return (Criteria) this;
        }

        public Criteria andAddressIsNotNull() {
            addCriterion("address is not null");
            return (Criteria) this;
        }

        public Criteria andAddressEqualTo(String value) {
            addCriterion("address =", value, "address");
            return (Criteria) this;
        }

        public Criteria andAddressNotEqualTo(String value) {
            addCriterion("address <>", value, "address");
            return (Criteria) this;
        }

        public Criteria andAddressGreaterThan(String value) {
            addCriterion("address >", value, "address");
            return (Criteria) this;
        }

        public Criteria andAddressGreaterThanOrEqualTo(String value) {
            addCriterion("address >=", value, "address");
            return (Criteria) this;
        }

        public Criteria andAddressLessThan(String value) {
            addCriterion("address <", value, "address");
            return (Criteria) this;
        }

        public Criteria andAddressLessThanOrEqualTo(String value) {
            addCriterion("address <=", value, "address");
            return (Criteria) this;
        }

        public Criteria andAddressLike(String value) {
            addCriterion("address like", value, "address");
            return (Criteria) this;
        }

        public Criteria andAddressNotLike(String value) {
            addCriterion("address not like", value, "address");
            return (Criteria) this;
        }

        public Criteria andAddressIn(List<String> values) {
            addCriterion("address in", values, "address");
            return (Criteria) this;
        }

        public Criteria andAddressNotIn(List<String> values) {
            addCriterion("address not in", values, "address");
            return (Criteria) this;
        }

        public Criteria andAddressBetween(String value1, String value2) {
            addCriterion("address between", value1, value2, "address");
            return (Criteria) this;
        }

        public Criteria andAddressNotBetween(String value1, String value2) {
            addCriterion("address not between", value1, value2, "address");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}